<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>发布内容</title>
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/font-awesome-4.7.0/css/font-awesome.min.css" type="text/css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/js/jquery-3.5.1.min.js"></script>
</head>
<body >
<div class="row" style="width: 100%;margin-top: 5% ;">
    <div class="col-md-4 " ></div>
    <div class="col-md-4 " style="background-color: #eeeeee;border-radius: 7px;"><br>
        <form action="/news_publish" method="post">
            标题<input type="text" style="width: 100%" id="title" name="title" class="form-control"><br>
            内容<textarea style="width: 100%" class="form-control" id="context" name="context"></textarea><br>
            类型<select name="sort" id="sort">
            <option value="时政" selected="selected">时政</option>
            <option value="军事">军事</option>
            <option value="科技">科技</option>
            <option value="娱乐">娱乐</option>
            <option value="生活">生活</option>
               </select><br><br>
            简介<textarea style="width: 100%" class="form-control" name="subtitle" id="subtitle"></textarea>
            <br>
            <br>
            <button type="submit" class="btn btn-primary btn-block">发布</button>
            <br>
            <button type="reset" class="btn btn-primary btn-block">取消</button><br>
            <div style="margin-top: 3%">
                <c:if test="${ not empty msg }">
                    <h1 style="text-align: center ; color: red ; font-weight: bolder">${msg}</h1>
                </c:if>
            </div>
        </form>
    </div>
    <div class="col-md-4 " ></div>

</div>

</body>
</html>

